const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  // 实现简写(类似于计算属性)
  name: state => state.user.userInfo.username,
  avatar: state => state.user.userInfo.staffPhoto

}
export default getters
